package main;

import java.util.ArrayList;

public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		ArrayList<ArrayList<Double>> matrixList = new ArrayList<ArrayList<Double>>();
		ArrayList<Double> row1 = new ArrayList<Double>();
		ArrayList<Double> row2 = new ArrayList<Double>();
		
		row1.add(1.0);
		row1.add(2.0);
		row2.add(3.0);
		row2.add(4.0);
		
		matrixList.add(row1);
		matrixList.add(row2);
				
		Matrix matrix = new Matrix(matrixList);
		matrix.show();
		
		Matrix matrix2 = matrix.add(matrix);
		matrix2.show();
		
		Matrix matrix3 = matrix2.subtract(matrix);
		matrix3.show();

	}

}
